package com.example.demo.Controller;

import com.example.demo.Model.User;
import com.fasterxml.jackson.databind.util.JSONPObject;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.websocket.server.PathParam;
import java.io.IOException;
import java.util.HashMap;

@RestController
public class HelloController{

    //指定接口信息
    @ApiOperation(value = "获取名称", notes = "测试函数")
    // 指定参数
    @ApiImplicitParam(name = "name", value = "用户名称", required = true)
    //指定路径
    @GetMapping("/getName")
    public String getHelloVariable(){
        return "";
    }
}